#include "scene.h"

Scene::Scene()
{
  //objects.push_back(new PlanetObject3D(0, 0, 0));
}
Scene::~Scene()
{
  for (unsigned i = 0; i < objects.size(); ++i)
    delete objects[i];
}

void Scene::addObject(AbstractObject3D* object)
{
  objects.push_back(object);
}

void Scene::clear()
{
  if (!objects.empty())
    objects.clear();
}

void Scene::renderObjects() const
{
  if (!objects.empty())
    for (unsigned i = 0; i < objects.size(); ++i)
      objects[i]->render();
}

